﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObserverPatternWithDelegate
{
    class Program
    {
        static void Main(string[] args)
        {
            ListWithChangedEvent list = new ListWithChangedEvent();
            EventListener listener = new EventListener(list);

            list.Add("item1");

            list.Clear();
            listener.Deatch();
        }
    }
}
